package org.colin.dictPojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 题目音频表
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-09
 */
@TableName("d_subject_recording")
public class DSubjectRecording extends Model<DSubjectRecording> {

    private static final long serialVersionUID=1L;

    /**
     * Ö÷¼ü
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 题目ID
     */
    @TableField("subjectId")
    private Integer subjectId;

    /**
     * 音频名
     */
    private String name;

    /**
     * 音频地址
     */
    @TableField("recordingUrl")
    private String recordingUrl;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRecordingUrl() {
        return recordingUrl;
    }

    public void setRecordingUrl(String recordingUrl) {
        this.recordingUrl = recordingUrl;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DSubjectRecording{" +
        "id=" + id +
        ", subjectId=" + subjectId +
        ", name=" + name +
        ", recordingUrl=" + recordingUrl +
        "}";
    }
}
